package com.itheima.dao;

import com.itheima.pojo.Member;
import com.github.pagehelper.Page;

import java.util.List;

public interface MemberDao {
    Member findByTelephone(String telephone);

    void add(Member member);

    Page<Member> findByCondition(String queryString);

    Member findById(Integer id);

    void update(Member member);

    void deleteById(Integer id);

    Integer findMemberCountBeforDate(String date);

    Integer findMemberCountByDate(String today);

    Integer findMemberTotleCount();

    Integer findMemberCountAfterDate(String monday);

    List<Member> selectByCondition(String queryString);
}
